import React from 'react';
import './index.css';

/**
 * 用户信息组件
 */

export default class UserInfo extends React.Component {
    constructor(props) {
        super(props);
    }

    componentDidMount() {

    }

    render() {
        let { userInfo, ticketInfo } = this.props;
        if (ticketInfo.unique_id == userInfo.uniqueID) {
            console.log('点击了自己');
        }
        return (
            <div className="live-user-info-background">
                <img className="live-user-info-avatar" src={userInfo.avatar}></img>
                <div className="live-user-info-name">{userInfo.nickname ? userInfo.nickname : userInfo.userName}</div>
            </div>
        )
    }
}
